package com.vshop.framework.core.constant;

import com.vshop.framework.core.util.StringConst;

/**
 * 配置属性相关常量
 */
public class PropertiesConst {

    public static final String BasePrefix = "vshop";

    /**
     * 启用配置
     */
    public static final String Enabled = "enabled";

    /**
     * 线程池配置
     */
    public static final String TreadPool = BasePrefix + StringConst.DOT + "thread-pool";

    /**
     * 安全配置
     */
    public static final String Security = BasePrefix + StringConst.DOT + "security";

    /**
     * 密码编解码配置
     */
    public static final String SecurityPassword = Security + StringConst.DOT + "password";

    /**
     * 加/解密配置
     */
    public static final String SecurityCrypto = Security + StringConst.DOT + "crypto";

    /**
     * 限流器配置
     */
    public static final String SecurityLimiter = Security + StringConst.DOT + "limiter";

    /**
     * Web 配置
     */
    public static final String Web = BasePrefix + StringConst.DOT + "web";

    /**
     * 跨域配置
     */
    public static final String WebCors = Web + StringConst.DOT + "cors";
    /**
     * XSS 配置
     */
    public static final String WebXss = Web + StringConst.DOT + "xss";

    /**
     * i18n 配置
     */
    public static final String WebI18n = Web + StringConst.DOT + "i18n";

    /**
     * 响应配置
     */
    public static final String WEB_RESPONSE = Web + StringConst.DOT + "response";

    /**
     * 链路配置
     */
    public static final String WEB_TRACE = Web + StringConst.DOT + "trace";


    /**
     * 日志配置
     */
    public static final String LOG = BasePrefix + StringConst.DOT + "log";

    /**
     * 存储配置
     */
    public static final String Storage = BasePrefix + StringConst.DOT + "storage";

    /**
     * 本地存储配置
     */
    public static final String StorageLocal = Storage + StringConst.DOT + "local";

    /**
     * 验证码配置
     */
    public static final String Captcha = BasePrefix + StringConst.DOT + "captcha";

    /**
     * 图形验证码配置
     */
    public static final String CaptchaGraphic = Captcha + StringConst.DOT + "graphic";

    /**
     * 行为验证码配置
     */
    public static final String CaptchaBehavior = Captcha + StringConst.DOT + "behavior";


    /**
     * 消息配置
     */
    public static final String Messaging = BasePrefix + StringConst.DOT + "messaging";

    /**
     * WebSocket 配置
     */
    public static final String MessagingWebSocket = Messaging + StringConst.DOT + "websocket";

    /**
     * CRUD 配置
     */
    public static final String CRUD = BasePrefix + StringConst.DOT + "crud";

    /**
     * 数据权限配置
     */
    public static final String DATA_PERMISSION = BasePrefix + StringConst.DOT + "data-permission";

    /**
     * 多租户配置
     */
    public static final String Tenant = BasePrefix + StringConst.DOT + "tenant";
}
